package com.xiongwei.onlyForTest;

/**
 * to do
 *
 * @author XiongWei
 * @date 2021/1/9
 */
public class TestSubstring {

    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("xiongwei,yuhui,");
        System.out.println(sb.toString().substring(0, sb.length() - 1));
        String str = ",";
        System.out.println(str.substring(0, str.length()-1));
    }

}
